package cn.wolfcode.luowowo.article.mapper;


import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.common.query.StrategyDetailQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQuery qo);

    void updateState(@Param("id") Long id, @Param("state") Integer state);

    List<StrategyDetail> selectViewnumTop3(Long id);

    void updateStats(StrategyDetail detail);
}